package demo.hms.stay.contoller;

import demo.hms.mybatis.entity.Stay;
import demo.hms.stay.service.StayService;
import demo.hms.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stay")
public class StayController {
    @Resource
    private StayService service;
    @RequestMapping(value = "/selectStay",method = RequestMethod.GET)
    public Result selectStay(Stay stay) {
        return service.selectStay(stay);
    }

}
